package com.epower.dao.epowerbook;

import com.epower.dataobject.EpowerBookDO;
import java.util.List;
/***
 * DAO接口层
 * @author QuickDev
 *
 */
public interface EpowerBookDAO {
	//查询操作
	public EpowerBookDO getEpowerBookByOption(EpowerBookDO epowerBook);
	public List<EpowerBookDO> getEpowerBookListByOption(EpowerBookDO epowerBook);
	public EpowerBookDO getEpowerBookById(Integer id);
	//删除操作
	public boolean deleteEpowerBookById(Integer id);
	public Integer getEpowerBookCountByOption(EpowerBookDO epowerBook);
	//更新操作
	public boolean  updateEpowerBookByOption(EpowerBookDO epowerBook);
	//添加操作
	public Integer addEpowerBook(EpowerBookDO epowerBook);
	/**
	 * 根据book条件获取符合条件的book的id和name
	 * 
	 * @param epowerBook
	 * @return
	 */
	public List<EpowerBookDO> getEpowerBookIdsByOption(EpowerBookDO epowerBook);
	
	
	/**
	 * 该课本是否是可以直接阅读单词的课本
	 * 
	 * @param id
	 * @return
	 */
	public boolean isBook(Integer id);
	
	public List<EpowerBookDO> getEpowerBookListByName(EpowerBookDO epowerBook);
	public List<EpowerBookDO> getEpowerBookListByPid(int pid);
}